package notes.java.sjms23.s3_factory.abstractfactory;

public class FactoryMainTest {
	
	public static void main(String[] args) {
		
		PCFactory factory = new HpPCFactory();
		Mouse mouse = factory.createMouse();
		mouse.click();
		Keyboard keyboard = factory.createKeyboard();
		keyboard.input();
		
		PCFactory factory2 = new DellPCFactory();
		Mouse mouse2 = factory2.createMouse();
		mouse2.click();
		Keyboard keyboard2 = factory2.createKeyboard();
		keyboard2.input();
		
	}

}
